package com.yunfei.bo.product;


import com.yunfei.utils.money.MoneyTool;
import com.yunfei.utils.string.StringUtil;

/****
* @Description: 理财师产品列表实体类
* @Author: zhengyunfei
* @Date: 2019/1/8
* @time:13:46
*/
public class ProductInfoListForLiCaiShiBo implements java.io.Serializable{
	// 主键
	private String pkId;
	// 项目名称,产品名称
	private String productName;
	// 产品期限
	private String deadline;
	// 认购起点,个人投资起点
	private String perminBalance;
	// 业绩比较基准,预期年化收益率
	private String yield;
	// 剩余额度
	private String leftScale;
	private String status;//产品状态 2在售3已下线
	private String custCnt;//预约人数

	private int isSiMu;//是否私募   0:非私募基金 1:私募基金

	private String jzProdFlg;//当字段值为Y时 为净值产品 当字段值为N时 非净值产品
	private String yieldViewName="业绩比较基准";//当为净值产品时， 业绩比较基准 文字 改为 七日年化收益率产品期限 文字 改为 存续期限
	private String deadlineViewName="产品期限";

	public String getJzProdFlg() {
		return jzProdFlg;
	}

	public void setJzProdFlg(String jzProdFlg) {
		this.jzProdFlg = jzProdFlg;
	}

	public String getDeadlineViewName() {
		if("Y".equals(jzProdFlg)){
			deadlineViewName="存续期限";
		}
		return deadlineViewName;
	}

	public void setDeadlineViewName(String deadlineViewName) {
		this.deadlineViewName = deadlineViewName;
	}
	public String getYieldViewName() {
		if("Y".equals(jzProdFlg)){
			yieldViewName="七日年化收益率";
		}
		return yieldViewName;
	}

	public void setYieldViewName(String yieldViewName) {
		this.yieldViewName = yieldViewName;
	}

	public int getIsSiMu() {
		return isSiMu;
	}

	public void setIsSiMu(int isSiMu) {
		this.isSiMu = isSiMu;
	}

	public String getCustCnt() {
		return custCnt;
	}

	public void setCustCnt(String custCnt) {
		this.custCnt = custCnt;
	}

	public String getPkId() {
		return pkId;
	}

	public void setPkId(String pkId) {
		this.pkId = pkId;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public String getDeadline() {
		return deadline;
	}

	public void setDeadline(String deadline) {
		this.deadline = deadline;
	}

	public String getPerminBalance() {
		//转换为万元
		if(!StringUtil.isNullOrEmpty(perminBalance)&&StringUtil.isNumeric(perminBalance)){
			perminBalance= MoneyTool.formatToWanYuanAndFenGe(Float.parseFloat(perminBalance));
		}
		return perminBalance;
	}

	public void setPerminBalance(String perminBalance) {
		this.perminBalance = perminBalance;
	}

	public String getYield() {
		return yield;
	}

	public void setYield(String yield) {
		this.yield = yield;
	}

	public String getLeftScale() {
		//转换为万元
		if(!StringUtil.isNullOrEmpty(leftScale)){
			leftScale= MoneyTool.formatToWanYuanAndFenGe(Double.parseDouble(leftScale));
		}else{
			leftScale="0";
		}
		return leftScale;
	}

	public void setLeftScale(String leftScale) {
		this.leftScale = leftScale;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	public static void main(String args[]){
		System.out.println(MoneyTool.formatToWanYuanAndFenGe(Double.parseDouble("0")));
	}
}